<template>
  <el-dialog title="参数填写" v-model="show" width="512px" destroy-on-close @open="handleOpen">
    {{ data?.content }}

    <el-input v-model="value" type="textarea" :rows="4"> </el-input>

    <template #footer>
      <el-button type="primary" @click="handleSubmit">确定</el-button>
    </template>
  </el-dialog>
</template>
<script setup>
const { chatStore } = inject('/chat')

const show = defineModel({ type: Boolean })
const props = defineProps({
  data: Object,
})
const value = ref('')

const handleOpen = () => {
  value.value = ''
}

const handleSubmit = () => {
  chat.inputParamter(value.value)
  show.value = false
}
</script>
<style lang="scss" scoped></style>
